package com.code.family.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体VO类
 * @author 上玄
 */

@Data
@ApiModel("UserVO对象")
public class UserVo implements Serializable {

    private Integer id;
    private String username;
    private String email;
    private String name;
    private String avatar;
    /**
     * 角色: 1为管理员/0为家庭成员
     */
    private Integer role;
    private Integer status;
    // jwt token
    private String token;
    private Date createdAt;
    private Date updatedAt;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}